#ifndef GAMESCENE_H
#define GAMESCENE_H

#include <QWidget>

extern int numofplayer;

class GameScene : public QWidget
{
    Q_OBJECT
public:
    explicit GameScene(QWidget *parent = nullptr);
    static int now_turn;
    //绘图事件
    void paintEvent(QPaintEvent *);
    void playermove(int n);
    void judge2(int pos,int turn);
    void judge3(int pos,int turn);
    bool dicefull();
    void doback();

signals:

};

int get_dice();
int get_high();
int get_low();
int get_st();
int get_nd();
int get_rd();
int get_turn(int last_turn);

int judge1(int pos,int d);
void judge2(int pos,int turn);
//void judge3(int pos,int turn);
#endif // GAMESCENE_H
